/**
 * controller: project
 *
 * @author    Dmitry Ustimov
 * @date      March 2012
 *
 */
package com.gr

import grails.converters.JSON

class ProjectController {	
	def ProjectService

	def getlist = {
		render ProjectService.getlist(params) as JSON
	}
	
	def getlistAll = {
		render ProjectService.getlistAll() as JSON
	}
	
	def getElement = {
		render ProjectService.getElement(params) as JSON
	}
	
	def addElement = {
		render ProjectService.addElement(params) as JSON
	}
	
	def editElement = {
		render ProjectService.editElement(params) as JSON
	}
	
	def deleteElement = {
		render ProjectService.deleteElement(params) as JSON
	}
}